﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace YL.Core.Entity
{
    /// <summary>
    /// 用户详情
    /// </summary>
    [SugarTable("Meter_ClientInfo")]
    public class ClientInfo
    {
        [SugarColumn(IsNullable = false, IsPrimaryKey = true, IsIdentity = true)]
        public long ClientId { set; get; }
        /// <summary>
        /// 父级id,第一级则默认为0
        /// </summary>
        public long ParentId { set; get; } = 0;
        /// <summary>
        /// 用户所在区域
        /// </summary>
        public string ClientArea { set; get; }
        /// <summary>
        /// 用户名称
        /// </summary>
        public string ClientName { set; get; }
        /// <summary>
        /// 回路名称
        /// </summary>
        public string CircuitName { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public string Description { set; get; }
        /// <summary>
        /// 用户id
        /// </summary>
        public long UserId { set; get; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { set; get; }=DateTime.Now;
        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>
        public long? ModifiedBy { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>
        public DateTime? ModifiedDate { get; set; }

        /// <summary>
        /// 经度
        /// </summary>
        public double? Longtitude { get; set; }

        /// <summary>
        /// 纬度
        /// </summary>
        public double? Latitude { get; set; }

        /// <summary>
        /// 是否和用户绑定，0未绑定，1已绑定
        /// </summary>
        public int IsBind { get; set; }
    }
}
